<!-- 用户编辑模态框 -->
<div class="modal-body">
    <form class="form-horizontal" method="post" name="form_submit" id="form_submit"
          action="${request.contextPath}/soa/baseinfo/contract/datas/save">
        <input type="hidden" id="id" name="id" value="${model.id!}">
        <div class="box-body">
                    <div class="form-group">
                        <label for="name" class="col-sm-3 control-label">合同名称</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="name" name="name" placeholder="请输入"
                                   value="${model.name!}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="contractNo" class="col-sm-3 control-label">合同编号</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="contractNo" name="contractNo" placeholder="请输入"
                                   value="${model.contractNo!}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="projectNo" class="col-sm-3 control-label">立项号</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="projectNo" name="projectNo" placeholder="请输入"
                                   value="${model.projectNo!}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="leasingPrice" class="col-sm-3 control-label">租赁/保理价款</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="leasingPrice" name="leasingPrice" placeholder="请输入"
                                   value="${model.leasingPrice!}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="actualAmount" class="col-sm-3 control-label">实际放款金额</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="actualAmount" name="actualAmount" placeholder="请输入"
                                   value="${model.actualAmount!}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="firstPaymentRatio" class="col-sm-3 control-label">首付款比例</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="firstPaymentRatio" name="firstPaymentRatio" placeholder="请输入"
                                   value="${model.firstPaymentRatio!}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="firstPayment" class="col-sm-3 control-label">首付款金额</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="firstPayment" name="firstPayment" placeholder="请输入"
                                   value="${model.firstPayment!}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="alsoRentWay" class="col-sm-3 control-label">还租方式</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="alsoRentWay" name="alsoRentWay" placeholder="请输入"
                                   value="${model.alsoRentWay!}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="repaymentPeriod" class="col-sm-3 control-label">还款期数</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="repaymentPeriod" name="repaymentPeriod" placeholder="请输入"
                                   value="${model.repaymentPeriod!}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="loanTime" class="col-sm-3 control-label">放款时间</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="loanTime" name="loanTime" placeholder="请输入"
                                   value="${model.loanTime!}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="liftingDay" class="col-sm-3 control-label">起租日</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="liftingDay" name="liftingDay" placeholder="请输入"
                                   value="${model.liftingDay!}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="cumulativeAmount" class="col-sm-3 control-label">累计放款额</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="cumulativeAmount" name="cumulativeAmount" placeholder="请输入"
                                   value="${model.cumulativeAmount!}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="totalInterest" class="col-sm-3 control-label">利息总额</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="totalInterest" name="totalInterest" placeholder="请输入"
                                   value="${model.totalInterest!}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="interestAte" class="col-sm-3 control-label">利率</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="interestAte" name="interestAte" placeholder="请输入"
                                   value="${model.interestAte!}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="processingRate" class="col-sm-3 control-label">手续费率(合计)</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="processingRate" name="processingRate" placeholder="请输入"
                                   value="${model.processingRate!}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="processingAmount" class="col-sm-3 control-label">手续费金额</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="processingAmount" name="processingAmount" placeholder="请输入"
                                   value="${model.processingAmount!}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="nominalPrice" class="col-sm-3 control-label">名义货价</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="nominalPrice" name="nominalPrice" placeholder="请输入"
                                   value="${model.nominalPrice!}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="irr" class="col-sm-3 control-label">IRR</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="irr" name="irr" placeholder="请输入"
                                   value="${model.irr!}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="remark" class="col-sm-3 control-label">备注</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="remark" name="remark" placeholder="请输入"
                                   value="${model.remark!}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="createTime" class="col-sm-3 control-label">创建时间</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="createTime" name="createTime" placeholder="请输入"
                                   value="${model.createTime!}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="isDeleted" class="col-sm-3 control-label">是否删除</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="isDeleted" name="isDeleted" placeholder="请输入"
                                   value="${model.isDeleted!}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="repaymentStatus" class="col-sm-3 control-label">还款状态</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="repaymentStatus" name="repaymentStatus" placeholder="请输入"
                                   value="${model.repaymentStatus!}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="isAbolition" class="col-sm-3 control-label">是否作废</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="isAbolition" name="isAbolition" placeholder="请输入"
                                   value="${model.isAbolition!}">
                        </div>
                    </div>
        </div>
    </form>
</div>
<script type="text/javascript">
    //表单校验及提交事件
    $('#form_submit').bootstrapValidator({
        message: 'This value is not valid',
        feedbackIcons: {
            valid: 'glyphicon glyphicon-ok',
            invalid: 'glyphicon glyphicon-remove',
            validating: 'glyphicon glyphicon-refresh'
        },
        fields: {
        id:
        {
            message: 'this is not valid',
            validators:{
                notEmpty: {
                    message: '不能为空！'
                }
            }
        }
                    ,name: {
                        message: 'this is not valid',
                        validators: {
                            notEmpty: {
                                message: '不能为空！'
                            }
                        }
                    }
                    ,contractNo: {
                        message: 'this is not valid',
                        validators: {
                            notEmpty: {
                                message: '不能为空！'
                            }
                        }
                    }
                    ,projectNo: {
                        message: 'this is not valid',
                        validators: {
                            notEmpty: {
                                message: '不能为空！'
                            }
                        }
                    }
                    ,leasingPrice: {
                        message: 'this is not valid',
                        validators: {
                            notEmpty: {
                                message: '不能为空！'
                            }
                        }
                    }
                    ,actualAmount: {
                        message: 'this is not valid',
                        validators: {
                            notEmpty: {
                                message: '不能为空！'
                            }
                        }
                    }
                    ,firstPaymentRatio: {
                        message: 'this is not valid',
                        validators: {
                            notEmpty: {
                                message: '不能为空！'
                            }
                        }
                    }
                    ,firstPayment: {
                        message: 'this is not valid',
                        validators: {
                            notEmpty: {
                                message: '不能为空！'
                            }
                        }
                    }
                    ,alsoRentWay: {
                        message: 'this is not valid',
                        validators: {
                            notEmpty: {
                                message: '不能为空！'
                            }
                        }
                    }
                    ,repaymentPeriod: {
                        message: 'this is not valid',
                        validators: {
                            notEmpty: {
                                message: '不能为空！'
                            }
                        }
                    }
                    ,loanTime: {
                        message: 'this is not valid',
                        validators: {
                            notEmpty: {
                                message: '不能为空！'
                            }
                        }
                    }
                    ,liftingDay: {
                        message: 'this is not valid',
                        validators: {
                            notEmpty: {
                                message: '不能为空！'
                            }
                        }
                    }
                    ,cumulativeAmount: {
                        message: 'this is not valid',
                        validators: {
                            notEmpty: {
                                message: '不能为空！'
                            }
                        }
                    }
                    ,totalInterest: {
                        message: 'this is not valid',
                        validators: {
                            notEmpty: {
                                message: '不能为空！'
                            }
                        }
                    }
                    ,interestAte: {
                        message: 'this is not valid',
                        validators: {
                            notEmpty: {
                                message: '不能为空！'
                            }
                        }
                    }
                    ,processingRate: {
                        message: 'this is not valid',
                        validators: {
                            notEmpty: {
                                message: '不能为空！'
                            }
                        }
                    }
                    ,processingAmount: {
                        message: 'this is not valid',
                        validators: {
                            notEmpty: {
                                message: '不能为空！'
                            }
                        }
                    }
                    ,nominalPrice: {
                        message: 'this is not valid',
                        validators: {
                            notEmpty: {
                                message: '不能为空！'
                            }
                        }
                    }
                    ,irr: {
                        message: 'this is not valid',
                        validators: {
                            notEmpty: {
                                message: '不能为空！'
                            }
                        }
                    }
                    ,remark: {
                        message: 'this is not valid',
                        validators: {
                            notEmpty: {
                                message: '不能为空！'
                            }
                        }
                    }
                    ,createTime: {
                        message: 'this is not valid',
                        validators: {
                            notEmpty: {
                                message: '不能为空！'
                            }
                        }
                    }
                    ,isDeleted: {
                        message: 'this is not valid',
                        validators: {
                            notEmpty: {
                                message: '不能为空！'
                            }
                        }
                    }
                    ,repaymentStatus: {
                        message: 'this is not valid',
                        validators: {
                            notEmpty: {
                                message: '不能为空！'
                            }
                        }
                    }
                    ,isAbolition: {
                        message: 'this is not valid',
                        validators: {
                            notEmpty: {
                                message: '不能为空！'
                            }
                        }
                    }

        }
    });
</script>
